import api from '../utils/api.js'

// 查询所有订单
export const queryAllOrders = (data) => {
	return api.request({
		url: '/order/queryAllOrders',
		method: 'get',
		data: data
	})
}


// 新增提现单
export const withdrawOrderSave = (data) => {
	return api.request({
		url: '/withdrawOrder/save',
		method: 'post',
		data: data
	})
}
// 新增提现单
export const queryByPrarm = (data) => {
	return api.request({
		url: '/withdrawOrder/queryByPrarm',
		method: 'post',
		data: data
	})
}

// 根据商品属性查询商品
export const queryOrdersByPrarm = (data) => {
	return api.request({
		url: '/order/queryOrdersByPrarm',
		method: 'post',
		data: data
	})
}
// 获取全部订单
export const queryOrdersByPrarmSt = (data) => {
	return api.request({
		url: '/order/queryOrdersByPrarmSt',
		method: 'post',
		data
	})
}

// 根据商品属性查询商品
export const queryAlls = (data) => {
	return api.request({
		url: '/productUnit/queryAll',
		method: 'get',
		data: data
	})
}



// 查询所有商品类型
export const queryAllProductTypesr = (data) => {
	return api.request({
		url: '/productType/queryAllProductTypes',
		method: 'get',
		data: data
	})
}
export const querySaleInfoByStId = (data) => {
	return api.request({
		url: '/order/querySaleInfoByStId',
		method: 'get',
		data: data
	})
}

// 配送类控制层
export const queryAllr = (data) => {
	return api.request({
		url: '/deliveryType/queryAll',
		method: 'get',
		data: data
	})
}

// 新增/保存商家信息(商家注册)
export const saveStore = (data) => {
	return api.request({
		url: '/saveStore',
		method: 'post',
		data: data
	})
}

// 发布商品提交按钮
export const saveProduct = (data) => {
	return api.request({
		url: '/saveProduct',
		method: 'post',
		data: data
	})
}
// 根据属性查询商户余额数据
export const queryStoreAcb = (data) => {
	return api.request({
		url: '/withdrawOrder/queryStoreAcb',
		method: 'post',
		data: data
	})
}
// 店铺信息
export const queryAllStores = (data) => {
	return api.request({
		url: '/queryAllStores',
		method: 'get',
		data: data
	})
}
// 获取店铺信息
export const queryStoresByPrarm = (data) => {
	return api.request({
		url: '/queryStoresByPrarm',
		method: 'post',
		data: data
	})
}
// 店铺信息
export const queryProductSaleDt = (data) => {
	return api.request({
		url: '/order/queryProductSaleDt',
		method: 'get',
		data: data
	})
}
// 店铺信息
export const createOrder = (data) => {
	return api.request({
		url: '/order/saveOrder',
		method: 'post',
		data: data
	})
}
